<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>jld.jld.backup.gliffy_backup</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="jld-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        Package&nbsp;jld ::
        Package&nbsp;jld ::
        Package&nbsp;backup ::
        Module&nbsp;gliffy_backup
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="jld.jld.backup.gliffy_backup-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="jld.jld.backup.gliffy_backup-module.html">Module jld.jld.backup.gliffy_backup</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-docstring">""" Backup for Gliffy diagrams</tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"><tt id="link-0" class="py-name" targets="Variable jld.__author__=jld-module.html#__author__,Variable jld.api.__author__=jld.api-module.html#__author__,Variable jld.api.delicious.__author__=jld.api.delicious-module.html#__author__,Variable jld.api.delicious_objects.__author__=jld.api.delicious_objects-module.html#__author__,Variable jld.api.gliffy.__author__=jld.api.gliffy-module.html#__author__,Variable jld.backup.delicious_db.__author__=jld.backup.delicious_db-module.html#__author__,Variable jld.backup.delicious_printer.__author__=jld.backup.delicious_printer-module.html#__author__,Variable jld.backup.delicious_ui.__author__=jld.backup.delicious_ui-module.html#__author__,Variable jld.backup.gliffy_db.__author__=jld.backup.gliffy_db-module.html#__author__,Variable jld.backup.gliffy_printer.__author__=jld.backup.gliffy_printer-module.html#__author__,Variable jld.backup.gliffy_ui.__author__=jld.backup.gliffy_ui-module.html#__author__,Variable jld.backup.mindmeister_db.__author__=jld.backup.mindmeister_db-module.html#__author__,Variable jld.backup.mindmeister_printer.__author__=jld.backup.mindmeister_printer-module.html#__author__,Variable jld.backup.mindmeister_ui.__author__=jld.backup.mindmeister_ui-module.html#__author__,Variable jld.cmd.__author__=jld.cmd-module.html#__author__,Variable jld.cmd.pypre.__author__=jld.cmd.pypre-module.html#__author__,Variable jld.gdata.docs.__author__=jld.gdata.docs-module.html#__author__,Variable jld.jld.backup.delicious.__author__=jld.jld.backup.delicious-module.html#__author__,Variable jld.jld.backup.delicious_defaults.__author__=jld.jld.backup.delicious_defaults-module.html#__author__,Variable jld.jld.backup.gliffy.__author__=jld.jld.backup.gliffy-module.html#__author__,Variable jld.jld.backup.gliffy_defaults.__author__=jld.jld.backup.gliffy_defaults-module.html#__author__,Variable jld.jld.backup.mindmeister_defaults.__author__=jld.jld.backup.mindmeister_defaults-module.html#__author__,Variable jld.jld.backup.mmd.__author__=jld.jld.backup.mmd-module.html#__author__,Variable jld.template.__author__=jld.template-module.html#__author__,Variable jld.tools.cmd_ui.__author__=jld.tools.cmd_ui-module.html#__author__,Variable jld.tools.daemon.__author__=jld.tools.daemon-module.html#__author__,Variable jld.tools.date.__author__=jld.tools.date-module.html#__author__,Variable jld.tools.db.__author__=jld.tools.db-module.html#__author__,Variable jld.tools.debug.__author__=jld.tools.debug-module.html#__author__,Variable jld.tools.klass.__author__=jld.tools.klass-module.html#__author__,Variable jld.tools.logger.__author__=jld.tools.logger-module.html#__author__,Variable jld.tools.mos.__author__=jld.tools.mos-module.html#__author__,Variable jld.tools.printer.__author__=jld.tools.printer-module.html#__author__,Variable jld.tools.process.__author__=jld.tools.process-module.html#__author__"><a title="jld.__author__
jld.api.__author__
jld.api.delicious.__author__
jld.api.delicious_objects.__author__
jld.api.gliffy.__author__
jld.backup.delicious_db.__author__
jld.backup.delicious_printer.__author__
jld.backup.delicious_ui.__author__
jld.backup.gliffy_db.__author__
jld.backup.gliffy_printer.__author__
jld.backup.gliffy_ui.__author__
jld.backup.mindmeister_db.__author__
jld.backup.mindmeister_printer.__author__
jld.backup.mindmeister_ui.__author__
jld.cmd.__author__
jld.cmd.pypre.__author__
jld.gdata.docs.__author__
jld.jld.backup.delicious.__author__
jld.jld.backup.delicious_defaults.__author__
jld.jld.backup.gliffy.__author__
jld.jld.backup.gliffy_defaults.__author__
jld.jld.backup.mindmeister_defaults.__author__
jld.jld.backup.mmd.__author__
jld.template.__author__
jld.tools.cmd_ui.__author__
jld.tools.daemon.__author__
jld.tools.date.__author__
jld.tools.db.__author__
jld.tools.debug.__author__
jld.tools.klass.__author__
jld.tools.logger.__author__
jld.tools.mos.__author__
jld.tools.printer.__author__
jld.tools.process.__author__" class="py-name" href="#" onclick="return doclink('link-0', '__author__', 'link-0');">__author__</a></tt>  <tt class="py-op">=</tt> <tt class="py-string">"Jean-Lou Dupont"</tt> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-name">__version__</tt> <tt class="py-op">=</tt> <tt class="py-string">"$Id: jld.jld.backup.gliffy_backup-pysrc.html 775 2009-01-07 03:08:10Z JeanLou.Dupont $"</tt> </tt>
<a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"> </tt>
<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"><tt id="link-1" class="py-name" targets="Variable jld.backup.delicious_printer.__msgs__=jld.backup.delicious_printer-module.html#__msgs__,Variable jld.backup.mindmeister_printer.__msgs__=jld.backup.mindmeister_printer-module.html#__msgs__,Variable jld.jld.backup.delicious_backup.__msgs__=jld.jld.backup.delicious_backup-module.html#__msgs__,Variable jld.jld.backup.gliffy_backup.__msgs__=jld.jld.backup.gliffy_backup-module.html#__msgs__,Variable jld.jld.backup.mindmeister_backup.__msgs__=jld.jld.backup.mindmeister_backup-module.html#__msgs__,Variable jld.tools.cmd_ui.__msgs__=jld.tools.cmd_ui-module.html#__msgs__"><a title="jld.backup.delicious_printer.__msgs__
jld.backup.mindmeister_printer.__msgs__
jld.jld.backup.delicious_backup.__msgs__
jld.jld.backup.gliffy_backup.__msgs__
jld.jld.backup.mindmeister_backup.__msgs__
jld.tools.cmd_ui.__msgs__" class="py-name" href="#" onclick="return doclink('link-1', '__msgs__', 'link-1');">__msgs__</a></tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">'error_init_folder'</tt><tt class="py-op">,</tt> <tt class="py-string">'error_create_folder'</tt><tt class="py-op">,</tt> <tt class="py-string">'frob_not_acquired'</tt><tt class="py-op">,</tt> <tt class="py-string">'error_cant_write'</tt><tt class="py-op">,</tt> <tt class="py-op">]</tt> </tt>
<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line"> </tt>
<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">sys</tt> </tt>
<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">os</tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">logging</tt> </tt>
<a name="L11"></a><tt class="py-lineno"> 11</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">datetime</tt> </tt>
<a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">urllib2</tt> </tt>
<a name="L13"></a><tt class="py-lineno"> 13</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">stat</tt> <tt class="py-keyword">import</tt> <tt class="py-op">*</tt> </tt>
<a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line"> </tt>
<a name="L15"></a><tt class="py-lineno"> 15</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-2" class="py-name" targets="Package jld=jld-module.html"><a title="jld" class="py-name" href="#" onclick="return doclink('link-2', 'jld', 'link-2');">jld</a></tt><tt class="py-op">.</tt><tt id="link-3" class="py-name" targets="Package jld.api=jld.api-module.html"><a title="jld.api" class="py-name" href="#" onclick="return doclink('link-3', 'api', 'link-3');">api</a></tt> <tt class="py-keyword">as</tt> <tt id="link-4" class="py-name"><a title="jld.api" class="py-name" href="#" onclick="return doclink('link-4', 'api', 'link-3');">api</a></tt> </tt>
<a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line"><tt class="py-keyword">from</tt>   <tt id="link-5" class="py-name"><a title="jld" class="py-name" href="#" onclick="return doclink('link-5', 'jld', 'link-2');">jld</a></tt><tt class="py-op">.</tt><tt id="link-6" class="py-name" targets="Package jld.cmd=jld.cmd-module.html"><a title="jld.cmd" class="py-name" href="#" onclick="return doclink('link-6', 'cmd', 'link-6');">cmd</a></tt> <tt class="py-keyword">import</tt> <tt id="link-7" class="py-name" targets="Class jld.cmd.BaseCmd=jld.cmd.BaseCmd-class.html"><a title="jld.cmd.BaseCmd" class="py-name" href="#" onclick="return doclink('link-7', 'BaseCmd', 'link-7');">BaseCmd</a></tt> </tt>
<a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-8" class="py-name"><a title="jld" class="py-name" href="#" onclick="return doclink('link-8', 'jld', 'link-2');">jld</a></tt><tt class="py-op">.</tt><tt id="link-9" class="py-name" targets="Package jld.registry=jld.registry-module.html"><a title="jld.registry" class="py-name" href="#" onclick="return doclink('link-9', 'registry', 'link-9');">registry</a></tt> <tt class="py-keyword">as</tt> <tt id="link-10" class="py-name" targets="Variable jld.registry.Registry.reg=jld.registry.Registry-class.html#reg"><a title="jld.registry.Registry.reg" class="py-name" href="#" onclick="return doclink('link-10', 'reg', 'link-10');">reg</a></tt> </tt>
<a name="L18"></a><tt class="py-lineno"> 18</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-11" class="py-name"><a title="jld" class="py-name" href="#" onclick="return doclink('link-11', 'jld', 'link-2');">jld</a></tt><tt class="py-op">.</tt><tt id="link-12" class="py-name" targets="Package jld.tools=jld.tools-module.html"><a title="jld.tools" class="py-name" href="#" onclick="return doclink('link-12', 'tools', 'link-12');">tools</a></tt><tt class="py-op">.</tt><tt id="link-13" class="py-name" targets="Module jld.tools.mos=jld.tools.mos-module.html"><a title="jld.tools.mos" class="py-name" href="#" onclick="return doclink('link-13', 'mos', 'link-13');">mos</a></tt> <tt class="py-keyword">as</tt> <tt id="link-14" class="py-name"><a title="jld.tools.mos" class="py-name" href="#" onclick="return doclink('link-14', 'mos', 'link-13');">mos</a></tt> </tt>
<a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line"> </tt>
<a name="L20"></a><tt class="py-lineno"> 20</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-15" class="py-name"><a title="jld" class="py-name" href="#" onclick="return doclink('link-15', 'jld', 'link-2');">jld</a></tt><tt class="py-op">.</tt><tt id="link-16" class="py-name"><a title="jld.api" class="py-name" href="#" onclick="return doclink('link-16', 'api', 'link-3');">api</a></tt><tt class="py-op">.</tt><tt id="link-17" class="py-name" targets="Module jld.api.gliffy=jld.api.gliffy-module.html,Module jld.jld.backup.gliffy=jld.jld.backup.gliffy-module.html"><a title="jld.api.gliffy
jld.jld.backup.gliffy" class="py-name" href="#" onclick="return doclink('link-17', 'gliffy', 'link-17');">gliffy</a></tt> <tt class="py-keyword">as</tt> <tt class="py-name">glf</tt> </tt>
<a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line"> </tt>
<a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-18" class="py-name"><a title="jld" class="py-name" href="#" onclick="return doclink('link-18', 'jld', 'link-2');">jld</a></tt><tt class="py-op">.</tt><tt id="link-19" class="py-name" targets="Package jld.backup=jld.backup-module.html"><a title="jld.backup" class="py-name" href="#" onclick="return doclink('link-19', 'backup', 'link-19');">backup</a></tt><tt class="py-op">.</tt><tt id="link-20" class="py-name" targets="Module jld.jld.backup.gliffy_messages=jld.jld.backup.gliffy_messages-module.html"><a title="jld.jld.backup.gliffy_messages" class="py-name" href="#" onclick="return doclink('link-20', 'gliffy_messages', 'link-20');">gliffy_messages</a></tt> <tt class="py-keyword">as</tt> <tt class="py-name">msg</tt> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-21" class="py-name"><a title="jld" class="py-name" href="#" onclick="return doclink('link-21', 'jld', 'link-2');">jld</a></tt><tt class="py-op">.</tt><tt id="link-22" class="py-name"><a title="jld.backup" class="py-name" href="#" onclick="return doclink('link-22', 'backup', 'link-19');">backup</a></tt><tt class="py-op">.</tt><tt id="link-23" class="py-name" targets="Module jld.backup.gliffy_printer=jld.backup.gliffy_printer-module.html"><a title="jld.backup.gliffy_printer" class="py-name" href="#" onclick="return doclink('link-23', 'gliffy_printer', 'link-23');">gliffy_printer</a></tt> <tt class="py-keyword">as</tt> <tt id="link-24" class="py-name" targets="Module jld.tools.printer=jld.tools.printer-module.html"><a title="jld.tools.printer" class="py-name" href="#" onclick="return doclink('link-24', 'printer', 'link-24');">printer</a></tt> </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line"> </tt>
<a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-25" class="py-name"><a title="jld" class="py-name" href="#" onclick="return doclink('link-25', 'jld', 'link-2');">jld</a></tt><tt class="py-op">.</tt><tt id="link-26" class="py-name"><a title="jld.backup" class="py-name" href="#" onclick="return doclink('link-26', 'backup', 'link-19');">backup</a></tt><tt class="py-op">.</tt><tt id="link-27" class="py-name" targets="Module jld.backup.gliffy_db=jld.backup.gliffy_db-module.html"><a title="jld.backup.gliffy_db" class="py-name" href="#" onclick="return doclink('link-27', 'gliffy_db', 'link-27');">gliffy_db</a></tt>    <tt class="py-keyword">as</tt> <tt class="py-name">glfdb</tt> </tt>
<a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-28" class="py-name"><a title="jld" class="py-name" href="#" onclick="return doclink('link-28', 'jld', 'link-2');">jld</a></tt><tt class="py-op">.</tt><tt id="link-29" class="py-name"><a title="jld.backup" class="py-name" href="#" onclick="return doclink('link-29', 'backup', 'link-19');">backup</a></tt><tt class="py-op">.</tt><tt id="link-30" class="py-name" targets="Module jld.backup.delicious_db=jld.backup.delicious_db-module.html"><a title="jld.backup.delicious_db" class="py-name" href="#" onclick="return doclink('link-30', 'delicious_db', 'link-30');">delicious_db</a></tt> <tt class="py-keyword">as</tt> <tt class="py-name">dlcdb</tt> </tt>
<a name="L27"></a><tt class="py-lineno"> 27</tt>  <tt class="py-line"> </tt>
<a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line"> </tt>
<a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line"><tt class="py-comment"># ========================================================================================</tt> </tt>
<a name="L30"></a><tt class="py-lineno"> 30</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="Backup"></a><div id="Backup-def"><a name="L31"></a><tt class="py-lineno"> 31</tt> <a class="py-toggle" href="#" id="Backup-toggle" onclick="return toggle('Backup');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="jld.jld.backup.gliffy_backup.Backup-class.html">Backup</a><tt class="py-op">(</tt><tt class="py-base-class">BaseCmd</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Backup-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="Backup-expanded"><a name="L32"></a><tt class="py-lineno"> 32</tt>  <tt class="py-line">    <tt class="py-docstring">"""Gliffy Backup class</tt> </tt>
<a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
<a name="L34"></a><tt class="py-lineno"> 34</tt>  <tt class="py-line">    <tt id="link-31" class="py-name" targets="Variable jld.jld.backup.delicious_backup.Backup._regDomain=jld.jld.backup.delicious_backup.Backup-class.html#_regDomain,Variable jld.jld.backup.gliffy_backup.Backup._regDomain=jld.jld.backup.gliffy_backup.Backup-class.html#_regDomain,Variable jld.jld.backup.mindmeister_backup.Backup._regDomain=jld.jld.backup.mindmeister_backup.Backup-class.html#_regDomain"><a title="jld.jld.backup.delicious_backup.Backup._regDomain
jld.jld.backup.gliffy_backup.Backup._regDomain
jld.jld.backup.mindmeister_backup.Backup._regDomain" class="py-name" href="#" onclick="return doclink('link-31', '_regDomain', 'link-31');">_regDomain</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'gliffy'</tt> </tt>
<a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line">     </tt>
<a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line">    <tt class="py-comment"># configuration parameters expected from the Delicious command-line ui</tt> </tt>
<a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment"># used also by the Printer</tt> </tt>
<a name="L38"></a><tt class="py-lineno"> 38</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt id="link-32" class="py-name" targets="Variable jld.jld.backup.delicious_backup.Backup._configParams=jld.jld.backup.delicious_backup.Backup-class.html#_configParams,Variable jld.jld.backup.gliffy_backup.Backup._configParams=jld.jld.backup.gliffy_backup.Backup-class.html#_configParams,Variable jld.jld.backup.mindmeister_backup.Backup._configParams=jld.jld.backup.mindmeister_backup.Backup-class.html#_configParams"><a title="jld.jld.backup.delicious_backup.Backup._configParams
jld.jld.backup.gliffy_backup.Backup._configParams
jld.jld.backup.mindmeister_backup.Backup._configParams" class="py-name" href="#" onclick="return doclink('link-32', '_configParams', 'link-32');">_configParams</a></tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">'export_path'</tt><tt class="py-op">,</tt> <tt class="py-string">'export_maxnum'</tt><tt class="py-op">,</tt> <tt class="py-string">'glf_db_path'</tt><tt class="py-op">,</tt> <tt class="py-string">'dlc_db_path'</tt><tt class="py-op">]</tt> </tt>
<a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line">     </tt>
<a name="Backup.__init__"></a><div id="Backup.__init__-def"><a name="L40"></a><tt class="py-lineno"> 40</tt> <a class="py-toggle" href="#" id="Backup.__init__-toggle" onclick="return toggle('Backup.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="jld.jld.backup.gliffy_backup.Backup-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Backup.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Backup.__init__-expanded"><a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line">        <tt id="link-33" class="py-name"><a title="jld.cmd.BaseCmd" class="py-name" href="#" onclick="return doclink('link-33', 'BaseCmd', 'link-7');">BaseCmd</a></tt><tt class="py-op">.</tt><tt id="link-34" class="py-name" targets="Method jld.api.ErrorGeneric.__init__()=jld.api.ErrorGeneric-class.html#__init__,Method jld.api.delicious.Api.__init__()=jld.api.delicious.Api-class.html#__init__,Method jld.api.delicious.Client.__init__()=jld.api.delicious.Client-class.html#__init__,Method jld.api.delicious.Waiter.__init__()=jld.api.delicious.Waiter-class.html#__init__,Method jld.api.mindmeister.MM.__init__()=jld.api.mindmeister.MM-class.html#__init__,Method jld.api.mindmeister.MM_Client.__init__()=jld.api.mindmeister.MM_Client-class.html#__init__,Method jld.api.mindmeister_response.MM_ResponseBase.__init__()=jld.api.mindmeister_response.MM_ResponseBase-class.html#__init__,Method jld.api.mindmeister_response.MM_ResponseBasic.__init__()=jld.api.mindmeister_response.MM_ResponseBasic-class.html#__init__,Method jld.api.mindmeister_response.MM_Response_getAuthToken.__init__()=jld.api.mindmeister_response.MM_Response_getAuthToken-class.html#__init__,Method jld.api.mindmeister_response.MM_Response_getFrob.__init__()=jld.api.mindmeister_response.MM_Response_getFrob-class.html#__init__,Method jld.api.mindmeister_response.MM_Response_getList.__init__()=jld.api.mindmeister_response.MM_Response_getList-class.html#__init__,Method jld.api.mindmeister_response.MM_Response_getMapExport.__init__()=jld.api.mindmeister_response.MM_Response_getMapExport-class.html#__init__,Method jld.backup.delicious_db.Db.__init__()=jld.backup.delicious_db.Db-class.html#__init__,Method jld.backup.delicious_printer.Delicious_Printer.__init__()=jld.backup.delicious_printer.Delicious_Printer-class.html#__init__,Method jld.backup.delicious_printer.Delicious_Printer_Config.__init__()=jld.backup.delicious_printer.Delicious_Printer_Config-class.html#__init__,Method jld.backup.delicious_printer.Delicious_Printer_Posts.__init__()=jld.backup.delicious_printer.Delicious_Printer_Posts-class.html#__init__,Method jld.backup.gliffy_db.Db.__init__()=jld.backup.gliffy_db.Db-class.html#__init__,Method jld.backup.gliffy_printer.Gliffy_Printer.__init__()=jld.backup.gliffy_printer.Gliffy_Printer-class.html#__init__,Method jld.backup.gliffy_printer.Gliffy_Printer_Config.__init__()=jld.backup.gliffy_printer.Gliffy_Printer_Config-class.html#__init__,Method jld.backup.gliffy_printer.Gliffy_Printer_Diagrams.__init__()=jld.backup.gliffy_printer.Gliffy_Printer_Diagrams-class.html#__init__,Method jld.backup.mindmeister_db.Db.__init__()=jld.backup.mindmeister_db.Db-class.html#__init__,Method jld.backup.mindmeister_printer.MM_Printer.__init__()=jld.backup.mindmeister_printer.MM_Printer-class.html#__init__,Method jld.backup.mindmeister_printer.MM_Printer_Config.__init__()=jld.backup.mindmeister_printer.MM_Printer_Config-class.html#__init__,Method jld.backup.mindmeister_printer.MM_Printer_Export.__init__()=jld.backup.mindmeister_printer.MM_Printer_Export-class.html#__init__,Method jld.backup.mindmeister_printer.MM_Printer_Maps.__init__()=jld.backup.mindmeister_printer.MM_Printer_Maps-class.html#__init__,Method jld.cmd.BaseCmd.__init__()=jld.cmd.BaseCmd-class.html#__init__,Method jld.gdata.docs.RawDoc.__init__()=jld.gdata.docs.RawDoc-class.html#__init__,Method jld.gdata.docs.ResultDoc.__init__()=jld.gdata.docs.ResultDoc-class.html#__init__,Method jld.jld.backup.delicious_backup.Backup.__init__()=jld.jld.backup.delicious_backup.Backup-class.html#__init__,Method jld.jld.backup.delicious_defaults.Delicious_Defaults.__init__()=jld.jld.backup.delicious_defaults.Delicious_Defaults-class.html#__init__,Method jld.jld.backup.delicious_messages.Delicious_Messages.__init__()=jld.jld.backup.delicious_messages.Delicious_Messages-class.html#__init__,Method jld.jld.backup.gliffy_backup.Backup.__init__()=jld.jld.backup.gliffy_backup.Backup-class.html#__init__,Method jld.jld.backup.gliffy_defaults.Gliffy_Defaults.__init__()=jld.jld.backup.gliffy_defaults.Gliffy_Defaults-class.html#__init__,Method jld.jld.backup.gliffy_messages.Gliffy_Messages.__init__()=jld.jld.backup.gliffy_messages.Gliffy_Messages-class.html#__init__,Method jld.jld.backup.mindmeister_backup.Backup.__init__()=jld.jld.backup.mindmeister_backup.Backup-class.html#__init__,Method jld.jld.backup.mindmeister_defaults.MM_Defaults.__init__()=jld.jld.backup.mindmeister_defaults.MM_Defaults-class.html#__init__,Method jld.jld.backup.mindmeister_messages.MM_Messages.__init__()=jld.jld.backup.mindmeister_messages.MM_Messages-class.html#__init__,Method jld.jld.backup.mmd.mmdCmd.__init__()=jld.jld.backup.mmd.mmdCmd-class.html#__init__,Method jld.jld.backup.mmd.mmdDaemon.__init__()=jld.jld.backup.mmd.mmdDaemon-class.html#__init__,Method jld.jld.backup.mmd.mmdMessages.__init__()=jld.jld.backup.mmd.mmdMessages-class.html#__init__,Method jld.jld.registry.linux.LinuxRegistry.__init__()=jld.jld.registry.linux.LinuxRegistry-class.html#__init__,Method jld.jld.tools.defaults.Defaults.__init__()=jld.jld.tools.defaults.Defaults-class.html#__init__,Method jld.jld.tools.messages.Messages.__init__()=jld.jld.tools.messages.Messages-class.html#__init__,Method jld.registry.Registry.__init__()=jld.registry.Registry-class.html#__init__,Method jld.registry.exception.RegistryException.__init__()=jld.registry.exception.RegistryException-class.html#__init__,Method jld.registry.windows.WindowsRegistry.__init__()=jld.registry.windows.WindowsRegistry-class.html#__init__,Method jld.template.Tpl.__init__()=jld.template.Tpl-class.html#__init__,Method jld.tools.cmd_ui.UIBase.__init__()=jld.tools.cmd_ui.UIBase-class.html#__init__,Method jld.tools.daemon.BaseDaemon.__init__()=jld.tools.daemon.BaseDaemon-class.html#__init__,Method jld.tools.db.BaseSQLObjectDb.__init__()=jld.tools.db.BaseSQLObjectDb-class.html#__init__,Method jld.tools.db.BaseSQLObjectDb2.__init__()=jld.tools.db.BaseSQLObjectDb2-class.html#__init__,Method jld.tools.printer.BasePrettyPrinter.__init__()=jld.tools.printer.BasePrettyPrinter-class.html#__init__,Method jld.tools.template.ExTemplate.__init__()=jld.tools.template.ExTemplate-class.html#__init__"><a title="jld.api.ErrorGeneric.__init__
jld.api.delicious.Api.__init__
jld.api.delicious.Client.__init__
jld.api.delicious.Waiter.__init__
jld.api.mindmeister.MM.__init__
jld.api.mindmeister.MM_Client.__init__
jld.api.mindmeister_response.MM_ResponseBase.__init__
jld.api.mindmeister_response.MM_ResponseBasic.__init__
jld.api.mindmeister_response.MM_Response_getAuthToken.__init__
jld.api.mindmeister_response.MM_Response_getFrob.__init__
jld.api.mindmeister_response.MM_Response_getList.__init__
jld.api.mindmeister_response.MM_Response_getMapExport.__init__
jld.backup.delicious_db.Db.__init__
jld.backup.delicious_printer.Delicious_Printer.__init__
jld.backup.delicious_printer.Delicious_Printer_Config.__init__
jld.backup.delicious_printer.Delicious_Printer_Posts.__init__
jld.backup.gliffy_db.Db.__init__
jld.backup.gliffy_printer.Gliffy_Printer.__init__
jld.backup.gliffy_printer.Gliffy_Printer_Config.__init__
jld.backup.gliffy_printer.Gliffy_Printer_Diagrams.__init__
jld.backup.mindmeister_db.Db.__init__
jld.backup.mindmeister_printer.MM_Printer.__init__
jld.backup.mindmeister_printer.MM_Printer_Config.__init__
jld.backup.mindmeister_printer.MM_Printer_Export.__init__
jld.backup.mindmeister_printer.MM_Printer_Maps.__init__
jld.cmd.BaseCmd.__init__
jld.gdata.docs.RawDoc.__init__
jld.gdata.docs.ResultDoc.__init__
jld.jld.backup.delicious_backup.Backup.__init__
jld.jld.backup.delicious_defaults.Delicious_Defaults.__init__
jld.jld.backup.delicious_messages.Delicious_Messages.__init__
jld.jld.backup.gliffy_backup.Backup.__init__
jld.jld.backup.gliffy_defaults.Gliffy_Defaults.__init__
jld.jld.backup.gliffy_messages.Gliffy_Messages.__init__
jld.jld.backup.mindmeister_backup.Backup.__init__
jld.jld.backup.mindmeister_defaults.MM_Defaults.__init__
jld.jld.backup.mindmeister_messages.MM_Messages.__init__
jld.jld.backup.mmd.mmdCmd.__init__
jld.jld.backup.mmd.mmdDaemon.__init__
jld.jld.backup.mmd.mmdMessages.__init__
jld.jld.registry.linux.LinuxRegistry.__init__
jld.jld.tools.defaults.Defaults.__init__
jld.jld.tools.messages.Messages.__init__
jld.registry.Registry.__init__
jld.registry.exception.RegistryException.__init__
jld.registry.windows.WindowsRegistry.__init__
jld.template.Tpl.__init__
jld.tools.cmd_ui.UIBase.__init__
jld.tools.daemon.BaseDaemon.__init__
jld.tools.db.BaseSQLObjectDb.__init__
jld.tools.db.BaseSQLObjectDb2.__init__
jld.tools.printer.BasePrettyPrinter.__init__
jld.tools.template.ExTemplate.__init__" class="py-name" href="#" onclick="return doclink('link-34', '__init__', 'link-34');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L42"></a><tt class="py-lineno"> 42</tt>  <tt class="py-line">         </tt>
<a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-35" class="py-name"><a title="jld.api.gliffy
jld.jld.backup.gliffy" class="py-name" href="#" onclick="return doclink('link-35', 'gliffy', 'link-17');">gliffy</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L44"></a><tt class="py-lineno"> 44</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-36" class="py-name" targets="Module jld.tools.logger=jld.tools.logger-module.html,Function jld.tools.logger.logger()=jld.tools.logger-module.html#logger"><a title="jld.tools.logger
jld.tools.logger.logger" class="py-name" href="#" onclick="return doclink('link-36', 'logger', 'link-36');">logger</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L45"></a><tt class="py-lineno"> 45</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">quiet</tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> </tt>
<a name="L46"></a><tt class="py-lineno"> 46</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">dlc_db_path</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">glf_db_path</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">dlc_db</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt>         </tt>
<a name="L49"></a><tt class="py-lineno"> 49</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">glf_db</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">export_path</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">export_path_init</tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> </tt>
<a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">export_maxnum</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L53"></a><tt class="py-lineno"> 53</tt>  <tt class="py-line">         </tt>
<a name="L54"></a><tt class="py-lineno"> 54</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">msgs</tt> <tt class="py-op">=</tt> <tt class="py-name">msg</tt><tt class="py-op">.</tt><tt id="link-37" class="py-name" targets="Class jld.jld.backup.gliffy_messages.Gliffy_Messages=jld.jld.backup.gliffy_messages.Gliffy_Messages-class.html"><a title="jld.jld.backup.gliffy_messages.Gliffy_Messages" class="py-name" href="#" onclick="return doclink('link-37', 'Gliffy_Messages', 'link-37');">Gliffy_Messages</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">r</tt> <tt class="py-op">=</tt> <tt id="link-38" class="py-name"><a title="jld.registry.Registry.reg" class="py-name" href="#" onclick="return doclink('link-38', 'reg', 'link-10');">reg</a></tt><tt class="py-op">.</tt><tt id="link-39" class="py-name" targets="Class jld.registry.Registry=jld.registry.Registry-class.html"><a title="jld.registry.Registry" class="py-name" href="#" onclick="return doclink('link-39', 'Registry', 'link-39');">Registry</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L56"></a><tt class="py-lineno"> 56</tt>  <tt class="py-line"> </tt>
<a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line">    <tt class="py-comment"># =========================================================</tt> </tt>
<a name="L58"></a><tt class="py-lineno"> 58</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment"># COMMANDS</tt> </tt>
<a name="L59"></a><tt class="py-lineno"> 59</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment"># =========================================================</tt> </tt>
<a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line"><tt class="py-comment"></tt>         </tt>
<a name="Backup.cmd_listconfig"></a><div id="Backup.cmd_listconfig-def"><a name="L61"></a><tt class="py-lineno"> 61</tt> <a class="py-toggle" href="#" id="Backup.cmd_listconfig-toggle" onclick="return toggle('Backup.cmd_listconfig');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="jld.jld.backup.gliffy_backup.Backup-class.html#cmd_listconfig">cmd_listconfig</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Backup.cmd_listconfig-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Backup.cmd_listconfig-expanded"><a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line">        <tt class="py-docstring">"""Lists the configuration"""</tt> </tt>
<a name="L63"></a><tt class="py-lineno"> 63</tt>  <tt class="py-line">        <tt class="py-name">pp</tt> <tt class="py-op">=</tt> <tt id="link-40" class="py-name"><a title="jld.tools.printer" class="py-name" href="#" onclick="return doclink('link-40', 'printer', 'link-24');">printer</a></tt><tt class="py-op">.</tt><tt id="link-41" class="py-name" targets="Class jld.backup.gliffy_printer.Gliffy_Printer_Config=jld.backup.gliffy_printer.Gliffy_Printer_Config-class.html"><a title="jld.backup.gliffy_printer.Gliffy_Printer_Config" class="py-name" href="#" onclick="return doclink('link-41', 'Gliffy_Printer_Config', 'link-41');">Gliffy_Printer_Config</a></tt><tt class="py-op">(</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">msgs</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt> <tt class="py-op">)</tt> </tt>
<a name="L64"></a><tt class="py-lineno"> 64</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-op">(</tt><tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">quiet</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line">            <tt class="py-name">pp</tt><tt class="py-op">.</tt><tt id="link-42" class="py-name" targets="Method jld.jld.backup.mmd.mmdDaemon.run()=jld.jld.backup.mmd.mmdDaemon-class.html#run,Method jld.tools.daemon.BaseDaemon.run()=jld.tools.daemon.BaseDaemon-class.html#run,Method jld.tools.printer.BasePrettyPrinter.run()=jld.tools.printer.BasePrettyPrinter-class.html#run"><a title="jld.jld.backup.mmd.mmdDaemon.run
jld.tools.daemon.BaseDaemon.run
jld.tools.printer.BasePrettyPrinter.run" class="py-name" href="#" onclick="return doclink('link-42', 'run', 'link-42');">run</a></tt><tt class="py-op">(</tt> <tt class="py-name">self</tt> <tt class="py-op">)</tt> </tt>
</div><a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line">     </tt>
<a name="Backup.cmd_listdb"></a><div id="Backup.cmd_listdb-def"><a name="L67"></a><tt class="py-lineno"> 67</tt> <a class="py-toggle" href="#" id="Backup.cmd_listdb-toggle" onclick="return toggle('Backup.cmd_listdb');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="jld.jld.backup.gliffy_backup.Backup-class.html#cmd_listdb">cmd_listdb</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Backup.cmd_listdb-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Backup.cmd_listdb-expanded"><a name="L68"></a><tt class="py-lineno"> 68</tt>  <tt class="py-line">        <tt class="py-docstring">""" Lists the current entries in the database """</tt> </tt>
<a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-43" class="py-name" targets="Method jld.jld.backup.delicious_backup.Backup._initDb()=jld.jld.backup.delicious_backup.Backup-class.html#_initDb,Method jld.jld.backup.gliffy_backup.Backup._initDb()=jld.jld.backup.gliffy_backup.Backup-class.html#_initDb,Method jld.jld.backup.mindmeister_backup.Backup._initDb()=jld.jld.backup.mindmeister_backup.Backup-class.html#_initDb"><a title="jld.jld.backup.delicious_backup.Backup._initDb
jld.jld.backup.gliffy_backup.Backup._initDb
jld.jld.backup.mindmeister_backup.Backup._initDb" class="py-name" href="#" onclick="return doclink('link-43', '_initDb', 'link-43');">_initDb</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line">        <tt class="py-name">all</tt> <tt class="py-op">=</tt> <tt class="py-name">glfdb</tt><tt class="py-op">.</tt><tt id="link-44" class="py-name" targets="Class jld.backup.gliffy_db.Diagrams=jld.backup.gliffy_db.Diagrams-class.html"><a title="jld.backup.gliffy_db.Diagrams" class="py-name" href="#" onclick="return doclink('link-44', 'Diagrams', 'link-44');">Diagrams</a></tt><tt class="py-op">.</tt><tt id="link-45" class="py-name" targets="Class Method jld.backup.delicious_db.Posts.getAll()=jld.backup.delicious_db.Posts-class.html#getAll,Class Method jld.backup.gliffy_db.Diagrams.getAll()=jld.backup.gliffy_db.Diagrams-class.html#getAll,Class Method jld.backup.mindmeister_db.Maps.getAll()=jld.backup.mindmeister_db.Maps-class.html#getAll"><a title="jld.backup.delicious_db.Posts.getAll
jld.backup.gliffy_db.Diagrams.getAll
jld.backup.mindmeister_db.Maps.getAll" class="py-name" href="#" onclick="return doclink('link-45', 'getAll', 'link-45');">getAll</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line">        <tt class="py-name">pp</tt> <tt class="py-op">=</tt> <tt id="link-46" class="py-name"><a title="jld.tools.printer" class="py-name" href="#" onclick="return doclink('link-46', 'printer', 'link-24');">printer</a></tt><tt class="py-op">.</tt><tt id="link-47" class="py-name" targets="Class jld.backup.gliffy_printer.Gliffy_Printer_Diagrams=jld.backup.gliffy_printer.Gliffy_Printer_Diagrams-class.html"><a title="jld.backup.gliffy_printer.Gliffy_Printer_Diagrams" class="py-name" href="#" onclick="return doclink('link-47', 'Gliffy_Printer_Diagrams', 'link-47');">Gliffy_Printer_Diagrams</a></tt><tt class="py-op">(</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">msgs</tt> <tt class="py-op">)</tt> </tt>
<a name="L72"></a><tt class="py-lineno"> 72</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-op">(</tt><tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">quiet</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line">            <tt class="py-name">pp</tt><tt class="py-op">.</tt><tt id="link-48" class="py-name"><a title="jld.jld.backup.mmd.mmdDaemon.run
jld.tools.daemon.BaseDaemon.run
jld.tools.printer.BasePrettyPrinter.run" class="py-name" href="#" onclick="return doclink('link-48', 'run', 'link-42');">run</a></tt><tt class="py-op">(</tt> <tt class="py-name">all</tt> <tt class="py-op">)</tt> </tt>
<a name="L74"></a><tt class="py-lineno"> 74</tt>  <tt class="py-line">            <tt class="py-keyword">print</tt> <tt class="py-string">'Total[%s]'</tt> <tt class="py-op">%</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">all</tt><tt class="py-op">)</tt> </tt>
</div><a name="L75"></a><tt class="py-lineno"> 75</tt>  <tt class="py-line">     </tt>
<a name="Backup.cmd_import"></a><div id="Backup.cmd_import-def"><a name="L76"></a><tt class="py-lineno"> 76</tt> <a class="py-toggle" href="#" id="Backup.cmd_import-toggle" onclick="return toggle('Backup.cmd_import');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="jld.jld.backup.gliffy_backup.Backup-class.html#cmd_import">cmd_import</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Backup.cmd_import-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Backup.cmd_import-expanded"><a name="L77"></a><tt class="py-lineno"> 77</tt>  <tt class="py-line">        <tt class="py-docstring">""" Imports the diagram ids' from the Delicious database (logged) """</tt> </tt>
<a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt>    <tt id="link-49" class="py-name" targets="Variable jld.backup.delicious_db.Posts.tag=jld.backup.delicious_db.Posts-class.html#tag"><a title="jld.backup.delicious_db.Posts.tag" class="py-name" href="#" onclick="return doclink('link-49', 'tag', 'link-49');">tag</a></tt> <tt class="py-op">=</tt> <tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
<a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt><tt class="py-op">:</tt> <tt class="py-keyword">raise</tt> <tt id="link-50" class="py-name"><a title="jld.api" class="py-name" href="#" onclick="return doclink('link-50', 'api', 'link-3');">api</a></tt><tt class="py-op">.</tt><tt id="link-51" class="py-name" targets="Class jld.api.ErrorValidation=jld.api.ErrorValidation-class.html"><a title="jld.api.ErrorValidation" class="py-name" href="#" onclick="return doclink('link-51', 'ErrorValidation', 'link-51');">ErrorValidation</a></tt><tt class="py-op">(</tt> <tt class="py-string">'missing_param'</tt><tt class="py-op">,</tt> <tt class="py-op">{</tt><tt class="py-string">'param'</tt><tt class="py-op">:</tt><tt class="py-string">'tag'</tt><tt class="py-op">}</tt> <tt class="py-op">)</tt> </tt>
<a name="L80"></a><tt class="py-lineno"> 80</tt>  <tt class="py-line"> </tt>
<a name="L81"></a><tt class="py-lineno"> 81</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-52" class="py-name"><a title="jld.jld.backup.delicious_backup.Backup._initDb
jld.jld.backup.gliffy_backup.Backup._initDb
jld.jld.backup.mindmeister_backup.Backup._initDb" class="py-name" href="#" onclick="return doclink('link-52', '_initDb', 'link-43');">_initDb</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L82"></a><tt class="py-lineno"> 82</tt>  <tt class="py-line">        <tt class="py-name">all</tt> <tt class="py-op">=</tt> <tt class="py-name">dlcdb</tt><tt class="py-op">.</tt><tt id="link-53" class="py-name" targets="Function jld.api.delicious_objects.Posts()=jld.api.delicious_objects-module.html#Posts,Class jld.backup.delicious_db.Posts=jld.backup.delicious_db.Posts-class.html"><a title="jld.api.delicious_objects.Posts
jld.backup.delicious_db.Posts" class="py-name" href="#" onclick="return doclink('link-53', 'Posts', 'link-53');">Posts</a></tt><tt class="py-op">.</tt><tt id="link-54" class="py-name"><a title="jld.backup.delicious_db.Posts.getAll
jld.backup.gliffy_db.Diagrams.getAll
jld.backup.mindmeister_db.Maps.getAll" class="py-name" href="#" onclick="return doclink('link-54', 'getAll', 'link-45');">getAll</a></tt><tt class="py-op">(</tt> <tt id="link-55" class="py-name"><a title="jld.backup.delicious_db.Posts.tag" class="py-name" href="#" onclick="return doclink('link-55', 'tag', 'link-49');">tag</a></tt> <tt class="py-op">)</tt> </tt>
<a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-56" class="py-name" targets="Method jld.jld.backup.gliffy_backup.Backup._doImport()=jld.jld.backup.gliffy_backup.Backup-class.html#_doImport"><a title="jld.jld.backup.gliffy_backup.Backup._doImport" class="py-name" href="#" onclick="return doclink('link-56', '_doImport', 'link-56');">_doImport</a></tt><tt class="py-op">(</tt><tt class="py-name">all</tt><tt class="py-op">)</tt>         </tt>
</div><a name="L84"></a><tt class="py-lineno"> 84</tt>  <tt class="py-line">             </tt>
<a name="Backup.cmd_export"></a><div id="Backup.cmd_export-def"><a name="L85"></a><tt class="py-lineno"> 85</tt> <a class="py-toggle" href="#" id="Backup.cmd_export-toggle" onclick="return toggle('Backup.cmd_export');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="jld.jld.backup.gliffy_backup.Backup-class.html#cmd_export">cmd_export</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Backup.cmd_export-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Backup.cmd_export-expanded"><a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line">        <tt class="py-docstring">""" Exports the diagrams to the export folder (logged) """</tt> </tt>
<a name="L87"></a><tt class="py-lineno"> 87</tt>  <tt class="py-line">         </tt>
<a name="L88"></a><tt class="py-lineno"> 88</tt>  <tt class="py-line">        <tt class="py-comment"># Verify export folder</tt> </tt>
<a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-57" class="py-name" targets="Method jld.jld.backup.gliffy_backup.Backup._init_export_folder()=jld.jld.backup.gliffy_backup.Backup-class.html#_init_export_folder,Method jld.jld.backup.mindmeister_backup.Backup._init_export_folder()=jld.jld.backup.mindmeister_backup.Backup-class.html#_init_export_folder"><a title="jld.jld.backup.gliffy_backup.Backup._init_export_folder
jld.jld.backup.mindmeister_backup.Backup._init_export_folder" class="py-name" href="#" onclick="return doclink('link-57', '_init_export_folder', 'link-57');">_init_export_folder</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line">         </tt>
<a name="L91"></a><tt class="py-lineno"> 91</tt>  <tt class="py-line">        <tt class="py-comment"># Get Export list</tt> </tt>
<a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#  This is a preliminary list of work to be done:</tt> </tt>
<a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#  the gliffy API must be queried for getting</tt> </tt>
<a name="L94"></a><tt class="py-lineno"> 94</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#  the up-to-date list. The 'etag' metadata is used.</tt> </tt>
<a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-58" class="py-name"><a title="jld.jld.backup.delicious_backup.Backup._initDb
jld.jld.backup.gliffy_backup.Backup._initDb
jld.jld.backup.mindmeister_backup.Backup._initDb" class="py-name" href="#" onclick="return doclink('link-58', '_initDb', 'link-43');">_initDb</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line">        <tt class="py-name">plist</tt> <tt class="py-op">=</tt> <tt class="py-name">glfdb</tt><tt class="py-op">.</tt><tt id="link-59" class="py-name"><a title="jld.backup.gliffy_db.Diagrams" class="py-name" href="#" onclick="return doclink('link-59', 'Diagrams', 'link-44');">Diagrams</a></tt><tt class="py-op">.</tt><tt id="link-60" class="py-name" targets="Class Method jld.backup.gliffy_db.Diagrams.getToExportList()=jld.backup.gliffy_db.Diagrams-class.html#getToExportList,Class Method jld.backup.mindmeister_db.Maps.getToExportList()=jld.backup.mindmeister_db.Maps-class.html#getToExportList"><a title="jld.backup.gliffy_db.Diagrams.getToExportList
jld.backup.mindmeister_db.Maps.getToExportList" class="py-name" href="#" onclick="return doclink('link-60', 'getToExportList', 'link-60');">getToExportList</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt>         </tt>
<a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line">        <tt class="py-name">p2list</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-61" class="py-name" targets="Method jld.jld.backup.gliffy_backup.Backup._buildIdEtagList()=jld.jld.backup.gliffy_backup.Backup-class.html#_buildIdEtagList"><a title="jld.jld.backup.gliffy_backup.Backup._buildIdEtagList" class="py-name" href="#" onclick="return doclink('link-61', '_buildIdEtagList', 'link-61');">_buildIdEtagList</a></tt><tt class="py-op">(</tt><tt class="py-name">plist</tt><tt class="py-op">)</tt> </tt>
<a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line">        <tt class="py-name">all</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-62" class="py-name" targets="Method jld.jld.backup.gliffy_backup.Backup._buildListToExport()=jld.jld.backup.gliffy_backup.Backup-class.html#_buildListToExport"><a title="jld.jld.backup.gliffy_backup.Backup._buildListToExport" class="py-name" href="#" onclick="return doclink('link-62', '_buildListToExport', 'link-62');">_buildListToExport</a></tt><tt class="py-op">(</tt><tt class="py-name">p2list</tt><tt class="py-op">)</tt> </tt>
<a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line"> </tt>
<a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line">        <tt class="py-name">total</tt> <tt class="py-op">=</tt> <tt class="py-name">len</tt> <tt class="py-op">(</tt><tt class="py-name">all</tt><tt class="py-op">)</tt>  </tt>
<a name="L101"></a><tt class="py-lineno">101</tt>  <tt class="py-line">        <tt class="py-name">successes</tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt>  </tt>
<a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line">        <tt class="py-name">failures</tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line">        <tt class="py-comment"># Export</tt> </tt>
<a name="L104"></a><tt class="py-lineno">104</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">for</tt> <tt class="py-name">diagram</tt><tt class="py-op">,</tt> <tt id="link-63" class="py-name" targets="Variable jld.backup.gliffy_db.Diagrams.did=jld.backup.gliffy_db.Diagrams-class.html#did"><a title="jld.backup.gliffy_db.Diagrams.did" class="py-name" href="#" onclick="return doclink('link-63', 'did', 'link-63');">did</a></tt><tt class="py-op">,</tt> <tt id="link-64" class="py-name" targets="Variable jld.backup.gliffy_db.Diagrams.etag=jld.backup.gliffy_db.Diagrams-class.html#etag"><a title="jld.backup.gliffy_db.Diagrams.etag" class="py-name" href="#" onclick="return doclink('link-64', 'etag', 'link-64');">etag</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">all</tt><tt class="py-op">:</tt> </tt>
<a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line">            <tt class="py-name">ts</tt> <tt class="py-op">=</tt> <tt class="py-name">datetime</tt><tt class="py-op">.</tt><tt class="py-name">datetime</tt><tt class="py-op">.</tt><tt class="py-name">now</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line">            <tt class="py-name">timestamp</tt> <tt class="py-op">=</tt> <tt class="py-string">"%s%s%s%s%s%s"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">ts</tt><tt class="py-op">.</tt><tt class="py-name">year</tt><tt class="py-op">,</tt> <tt class="py-name">ts</tt><tt class="py-op">.</tt><tt class="py-name">month</tt><tt class="py-op">,</tt> <tt class="py-name">ts</tt><tt class="py-op">.</tt><tt class="py-name">day</tt><tt class="py-op">,</tt> <tt class="py-name">ts</tt><tt class="py-op">.</tt><tt class="py-name">hour</tt><tt class="py-op">,</tt> <tt class="py-name">ts</tt><tt class="py-op">.</tt><tt class="py-name">minute</tt><tt class="py-op">,</tt> <tt class="py-name">ts</tt><tt class="py-op">.</tt><tt class="py-name">second</tt><tt class="py-op">)</tt> </tt>
<a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line">            <tt class="py-name">result</tt><tt class="py-op">,</tt> <tt id="link-65" class="py-name"><a title="jld.backup.gliffy_db.Diagrams.etag" class="py-name" href="#" onclick="return doclink('link-65', 'etag', 'link-64');">etag</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-66" class="py-name" targets="Method jld.jld.backup.gliffy_backup.Backup._exportOne()=jld.jld.backup.gliffy_backup.Backup-class.html#_exportOne,Method jld.jld.backup.mindmeister_backup.Backup._exportOne()=jld.jld.backup.mindmeister_backup.Backup-class.html#_exportOne"><a title="jld.jld.backup.gliffy_backup.Backup._exportOne
jld.jld.backup.mindmeister_backup.Backup._exportOne" class="py-name" href="#" onclick="return doclink('link-66', '_exportOne', 'link-66');">_exportOne</a></tt><tt class="py-op">(</tt><tt id="link-67" class="py-name"><a title="jld.backup.gliffy_db.Diagrams.did" class="py-name" href="#" onclick="return doclink('link-67', 'did', 'link-63');">did</a></tt><tt class="py-op">,</tt> <tt class="py-name">timestamp</tt><tt class="py-op">)</tt> </tt>
<a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">result</tt><tt class="py-op">:</tt>  </tt>
<a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-68" class="py-name" targets="Class Method jld.backup.delicious_db.Posts._updateOne()=jld.backup.delicious_db.Posts-class.html#_updateOne,Class Method jld.backup.gliffy_db.Diagrams._updateOne()=jld.backup.gliffy_db.Diagrams-class.html#_updateOne,Method jld.jld.backup.gliffy_backup.Backup._updateOne()=jld.jld.backup.gliffy_backup.Backup-class.html#_updateOne"><a title="jld.backup.delicious_db.Posts._updateOne
jld.backup.gliffy_db.Diagrams._updateOne
jld.jld.backup.gliffy_backup.Backup._updateOne" class="py-name" href="#" onclick="return doclink('link-68', '_updateOne', 'link-68');">_updateOne</a></tt><tt class="py-op">(</tt><tt class="py-name">diagram</tt><tt class="py-op">,</tt> <tt id="link-69" class="py-name"><a title="jld.backup.gliffy_db.Diagrams.etag" class="py-name" href="#" onclick="return doclink('link-69', 'etag', 'link-64');">etag</a></tt><tt class="py-op">,</tt> <tt class="py-name">ts</tt><tt class="py-op">)</tt> </tt>
<a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line">                <tt class="py-name">successes</tt> <tt class="py-op">=</tt> <tt class="py-name">successes</tt> <tt class="py-op">+</tt> <tt class="py-number">1</tt> </tt>
<a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line">                <tt class="py-name">failures</tt>  <tt class="py-op">=</tt> <tt class="py-name">failures</tt> <tt class="py-op">+</tt> <tt class="py-number">1</tt>  </tt>
<a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line">             </tt>
<a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line">        <tt class="py-name">msg</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">msgs</tt><tt class="py-op">.</tt><tt id="link-70" class="py-name" targets="Method jld.jld.tools.messages.Messages.render2()=jld.jld.tools.messages.Messages-class.html#render2"><a title="jld.jld.tools.messages.Messages.render2" class="py-name" href="#" onclick="return doclink('link-70', 'render2', 'link-70');">render2</a></tt><tt class="py-op">(</tt><tt class="py-string">'report_export'</tt><tt class="py-op">,</tt> <tt class="py-op">{</tt><tt class="py-string">'total'</tt><tt class="py-op">:</tt><tt class="py-name">total</tt><tt class="py-op">,</tt> <tt class="py-string">'successes'</tt><tt class="py-op">:</tt><tt class="py-name">successes</tt><tt class="py-op">,</tt> <tt class="py-string">'failures'</tt><tt class="py-op">:</tt> <tt class="py-name">failures</tt><tt class="py-op">}</tt> <tt class="py-op">)</tt> </tt>
<a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-71" class="py-name"><a title="jld.tools.logger
jld.tools.logger.logger" class="py-name" href="#" onclick="return doclink('link-71', 'logger', 'link-36');">logger</a></tt><tt class="py-op">.</tt><tt class="py-name">info</tt><tt class="py-op">(</tt><tt class="py-name">msg</tt><tt class="py-op">)</tt> </tt>
</div><a name="L116"></a><tt class="py-lineno">116</tt>  <tt class="py-line">             </tt>
<a name="Backup.cmd_deletedb"></a><div id="Backup.cmd_deletedb-def"><a name="L117"></a><tt class="py-lineno">117</tt> <a class="py-toggle" href="#" id="Backup.cmd_deletedb-toggle" onclick="return toggle('Backup.cmd_deletedb');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="jld.jld.backup.gliffy_backup.Backup-class.html#cmd_deletedb">cmd_deletedb</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Backup.cmd_deletedb-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Backup.cmd_deletedb-expanded"><a name="L118"></a><tt class="py-lineno">118</tt>  <tt class="py-line">        <tt class="py-docstring">"""Deletes the database"""</tt> </tt>
<a name="L119"></a><tt class="py-lineno">119</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-72" class="py-name" targets="Method jld.jld.backup.delicious_backup.Backup._deleteDb()=jld.jld.backup.delicious_backup.Backup-class.html#_deleteDb,Method jld.jld.backup.gliffy_backup.Backup._deleteDb()=jld.jld.backup.gliffy_backup.Backup-class.html#_deleteDb,Method jld.jld.backup.mindmeister_backup.Backup._deleteDb()=jld.jld.backup.mindmeister_backup.Backup-class.html#_deleteDb"><a title="jld.jld.backup.delicious_backup.Backup._deleteDb
jld.jld.backup.gliffy_backup.Backup._deleteDb
jld.jld.backup.mindmeister_backup.Backup._deleteDb" class="py-name" href="#" onclick="return doclink('link-72', '_deleteDb', 'link-72');">_deleteDb</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L120"></a><tt class="py-lineno">120</tt>  <tt class="py-line">         </tt>
<a name="L121"></a><tt class="py-lineno">121</tt>  <tt class="py-line">    <tt class="py-comment"># =========================================================</tt> </tt>
<a name="L122"></a><tt class="py-lineno">122</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment"># HELPERS</tt> </tt>
<a name="L123"></a><tt class="py-lineno">123</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment"># =========================================================</tt> </tt>
<a name="Backup._buildIdEtagList"></a><div id="Backup._buildIdEtagList-def"><a name="L124"></a><tt class="py-lineno">124</tt> <a class="py-toggle" href="#" id="Backup._buildIdEtagList-toggle" onclick="return toggle('Backup._buildIdEtagList');">-</a><tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">def</tt> <a class="py-def-name" href="jld.jld.backup.gliffy_backup.Backup-class.html#_buildIdEtagList">_buildIdEtagList</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">list</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Backup._buildIdEtagList-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Backup._buildIdEtagList-expanded"><a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line">        <tt class="py-docstring">""" Builds a diagram id+etag list from a diagram object list</tt> </tt>
<a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line"><tt class="py-docstring">            @param list: the database diagram object list</tt> </tt>
<a name="L127"></a><tt class="py-lineno">127</tt>  <tt class="py-line"><tt class="py-docstring">            @return: output diagram list consisting of (diagram, id,etag)</tt> </tt>
<a name="L128"></a><tt class="py-lineno">128</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L129"></a><tt class="py-lineno">129</tt>  <tt class="py-line">        <tt class="py-name">result</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L130"></a><tt class="py-lineno">130</tt>  <tt class="py-line">        <tt class="py-name">list</tt> <tt class="py-op">=</tt> <tt class="py-name">list</tt> <tt class="py-keyword">if</tt> <tt class="py-name">list</tt> <tt class="py-keyword">else</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L131"></a><tt class="py-lineno">131</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">diagram</tt> <tt class="py-keyword">in</tt> <tt class="py-name">list</tt><tt class="py-op">:</tt> </tt>
<a name="L132"></a><tt class="py-lineno">132</tt>  <tt class="py-line">            <tt class="py-name">result</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt> <tt class="py-op">(</tt><tt class="py-name">diagram</tt><tt class="py-op">,</tt> <tt class="py-name">diagram</tt><tt class="py-op">.</tt><tt id="link-73" class="py-name"><a title="jld.backup.gliffy_db.Diagrams.did" class="py-name" href="#" onclick="return doclink('link-73', 'did', 'link-63');">did</a></tt><tt class="py-op">,</tt><tt class="py-name">diagram</tt><tt class="py-op">.</tt><tt id="link-74" class="py-name"><a title="jld.backup.gliffy_db.Diagrams.etag" class="py-name" href="#" onclick="return doclink('link-74', 'etag', 'link-64');">etag</a></tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L133"></a><tt class="py-lineno">133</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">result</tt> </tt>
</div><a name="L134"></a><tt class="py-lineno">134</tt>  <tt class="py-line">         </tt>
<a name="Backup._buildListToExport"></a><div id="Backup._buildListToExport-def"><a name="L135"></a><tt class="py-lineno">135</tt> <a class="py-toggle" href="#" id="Backup._buildListToExport-toggle" onclick="return toggle('Backup._buildListToExport');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="jld.jld.backup.gliffy_backup.Backup-class.html#_buildListToExport">_buildListToExport</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">list</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Backup._buildListToExport-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Backup._buildListToExport-expanded"><a name="L136"></a><tt class="py-lineno">136</tt>  <tt class="py-line">        <tt class="py-docstring">""" Builds the export list</tt> </tt>
<a name="L137"></a><tt class="py-lineno">137</tt>  <tt class="py-line"><tt class="py-docstring">            @param list: the input diagram id+etag list</tt> </tt>
<a name="L138"></a><tt class="py-lineno">138</tt>  <tt class="py-line"><tt class="py-docstring">            @return: the processed by diagram id list</tt> </tt>
<a name="L139"></a><tt class="py-lineno">139</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L140"></a><tt class="py-lineno">140</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-75" class="py-name" targets="Method jld.jld.backup.gliffy_backup.Backup._initGliffy()=jld.jld.backup.gliffy_backup.Backup-class.html#_initGliffy"><a title="jld.jld.backup.gliffy_backup.Backup._initGliffy" class="py-name" href="#" onclick="return doclink('link-75', '_initGliffy', 'link-75');">_initGliffy</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L141"></a><tt class="py-lineno">141</tt>  <tt class="py-line">        <tt class="py-name">result</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L142"></a><tt class="py-lineno">142</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">item</tt> <tt class="py-keyword">in</tt> <tt class="py-name">list</tt><tt class="py-op">:</tt> </tt>
<a name="L143"></a><tt class="py-lineno">143</tt>  <tt class="py-line">            <tt class="py-name">diagram</tt><tt class="py-op">,</tt> <tt id="link-76" class="py-name"><a title="jld.backup.gliffy_db.Diagrams.did" class="py-name" href="#" onclick="return doclink('link-76', 'did', 'link-63');">did</a></tt><tt class="py-op">,</tt> <tt class="py-name">cetag</tt> <tt class="py-op">=</tt> <tt class="py-name">item</tt> </tt>
<a name="L144"></a><tt class="py-lineno">144</tt>  <tt class="py-line">            <tt class="py-name">code</tt><tt class="py-op">,</tt> <tt id="link-77" class="py-name"><a title="jld.backup.gliffy_db.Diagrams.etag" class="py-name" href="#" onclick="return doclink('link-77', 'etag', 'link-64');">etag</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-78" class="py-name"><a title="jld.api.gliffy
jld.jld.backup.gliffy" class="py-name" href="#" onclick="return doclink('link-78', 'gliffy', 'link-17');">gliffy</a></tt><tt class="py-op">.</tt><tt id="link-79" class="py-name" targets="Method jld.api.gliffy.Client.head()=jld.api.gliffy.Client-class.html#head"><a title="jld.api.gliffy.Client.head" class="py-name" href="#" onclick="return doclink('link-79', 'head', 'link-79');">head</a></tt><tt class="py-op">(</tt><tt id="link-80" class="py-name"><a title="jld.backup.gliffy_db.Diagrams.did" class="py-name" href="#" onclick="return doclink('link-80', 'did', 'link-63');">did</a></tt><tt class="py-op">)</tt> </tt>
<a name="L145"></a><tt class="py-lineno">145</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-op">(</tt><tt class="py-name">code</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L146"></a><tt class="py-lineno">146</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-op">(</tt><tt class="py-name">cetag</tt> <tt class="py-op">!=</tt> <tt id="link-81" class="py-name"><a title="jld.backup.gliffy_db.Diagrams.etag" class="py-name" href="#" onclick="return doclink('link-81', 'etag', 'link-64');">etag</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L147"></a><tt class="py-lineno">147</tt>  <tt class="py-line">                    <tt class="py-name">result</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt> <tt class="py-op">(</tt><tt class="py-name">diagram</tt><tt class="py-op">,</tt> <tt id="link-82" class="py-name"><a title="jld.backup.gliffy_db.Diagrams.did" class="py-name" href="#" onclick="return doclink('link-82', 'did', 'link-63');">did</a></tt><tt class="py-op">,</tt> <tt id="link-83" class="py-name"><a title="jld.backup.gliffy_db.Diagrams.etag" class="py-name" href="#" onclick="return doclink('link-83', 'etag', 'link-64');">etag</a></tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L148"></a><tt class="py-lineno">148</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">result</tt> </tt>
</div><a name="L149"></a><tt class="py-lineno">149</tt>  <tt class="py-line">     </tt>
<a name="Backup._updateOne"></a><div id="Backup._updateOne-def"><a name="L150"></a><tt class="py-lineno">150</tt> <a class="py-toggle" href="#" id="Backup._updateOne-toggle" onclick="return toggle('Backup._updateOne');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="jld.jld.backup.gliffy_backup.Backup-class.html#_updateOne">_updateOne</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">diagram</tt><tt class="py-op">,</tt> <tt class="py-param">etag</tt><tt class="py-op">,</tt> <tt class="py-param">timestamp</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Backup._updateOne-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Backup._updateOne-expanded"><a name="L151"></a><tt class="py-lineno">151</tt>  <tt class="py-line">        <tt class="py-docstring">""" Updates the database diagram entry """</tt> </tt>
<a name="L152"></a><tt class="py-lineno">152</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L153"></a><tt class="py-lineno">153</tt>  <tt class="py-line">            <tt class="py-name">diagram</tt><tt class="py-op">.</tt><tt id="link-84" class="py-name"><a title="jld.backup.gliffy_db.Diagrams.etag" class="py-name" href="#" onclick="return doclink('link-84', 'etag', 'link-64');">etag</a></tt> <tt class="py-op">=</tt> <tt id="link-85" class="py-name"><a title="jld.backup.gliffy_db.Diagrams.etag" class="py-name" href="#" onclick="return doclink('link-85', 'etag', 'link-64');">etag</a></tt> </tt>
<a name="L154"></a><tt class="py-lineno">154</tt>  <tt class="py-line">            <tt class="py-name">diagram</tt><tt class="py-op">.</tt><tt id="link-86" class="py-name" targets="Variable jld.backup.gliffy_db.Diagrams.exported=jld.backup.gliffy_db.Diagrams-class.html#exported,Variable jld.backup.mindmeister_db.Maps.exported=jld.backup.mindmeister_db.Maps-class.html#exported"><a title="jld.backup.gliffy_db.Diagrams.exported
jld.backup.mindmeister_db.Maps.exported" class="py-name" href="#" onclick="return doclink('link-86', 'exported', 'link-86');">exported</a></tt> <tt class="py-op">=</tt> <tt class="py-name">timestamp</tt> </tt>
<a name="L155"></a><tt class="py-lineno">155</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">Exception</tt><tt class="py-op">,</tt><tt class="py-name">e</tt><tt class="py-op">:</tt> </tt>
<a name="L156"></a><tt class="py-lineno">156</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt id="link-87" class="py-name"><a title="jld.api" class="py-name" href="#" onclick="return doclink('link-87', 'api', 'link-3');">api</a></tt><tt class="py-op">.</tt><tt id="link-88" class="py-name" targets="Class jld.api.ErrorDb=jld.api.ErrorDb-class.html"><a title="jld.api.ErrorDb" class="py-name" href="#" onclick="return doclink('link-88', 'ErrorDb', 'link-88');">ErrorDb</a></tt><tt class="py-op">(</tt><tt class="py-string">'msg:error_update_db'</tt><tt class="py-op">,</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt><tt class="py-op">)</tt> </tt>
</div><a name="L157"></a><tt class="py-lineno">157</tt>  <tt class="py-line">         </tt>
<a name="Backup._exportOne"></a><div id="Backup._exportOne-def"><a name="L158"></a><tt class="py-lineno">158</tt> <a class="py-toggle" href="#" id="Backup._exportOne-toggle" onclick="return toggle('Backup._exportOne');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="jld.jld.backup.gliffy_backup.Backup-class.html#_exportOne">_exportOne</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">did</tt><tt class="py-op">,</tt> <tt class="py-param">timestamp</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Backup._exportOne-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Backup._exportOne-expanded"><a name="L159"></a><tt class="py-lineno">159</tt>  <tt class="py-line">        <tt class="py-docstring">""" Exports one diagram to the export folder</tt> </tt>
<a name="L160"></a><tt class="py-lineno">160</tt>  <tt class="py-line"><tt class="py-docstring">            @param did: diagram id</tt> </tt>
<a name="L161"></a><tt class="py-lineno">161</tt>  <tt class="py-line"><tt class="py-docstring">            @return: result, etag  </tt> </tt>
<a name="L162"></a><tt class="py-lineno">162</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L163"></a><tt class="py-lineno">163</tt>  <tt class="py-line">        <tt class="py-name">msg</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">msgs</tt><tt class="py-op">.</tt><tt id="link-89" class="py-name" targets="Method jld.jld.tools.messages.Messages.render()=jld.jld.tools.messages.Messages-class.html#render,Method jld.template.Tpl.render()=jld.template.Tpl-class.html#render"><a title="jld.jld.tools.messages.Messages.render
jld.template.Tpl.render" class="py-name" href="#" onclick="return doclink('link-89', 'render', 'link-89');">render</a></tt><tt class="py-op">(</tt><tt class="py-string">'report_export_one'</tt><tt class="py-op">,</tt> <tt class="py-op">{</tt><tt class="py-string">'id'</tt><tt class="py-op">:</tt><tt id="link-90" class="py-name"><a title="jld.backup.gliffy_db.Diagrams.did" class="py-name" href="#" onclick="return doclink('link-90', 'did', 'link-63');">did</a></tt><tt class="py-op">}</tt><tt class="py-op">)</tt> </tt>
<a name="L164"></a><tt class="py-lineno">164</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-91" class="py-name"><a title="jld.tools.logger
jld.tools.logger.logger" class="py-name" href="#" onclick="return doclink('link-91', 'logger', 'link-36');">logger</a></tt><tt class="py-op">.</tt><tt class="py-name">info</tt><tt class="py-op">(</tt><tt class="py-name">msg</tt><tt class="py-op">)</tt> </tt>
<a name="L165"></a><tt class="py-lineno">165</tt>  <tt class="py-line">         </tt>
<a name="L166"></a><tt class="py-lineno">166</tt>  <tt class="py-line">        <tt class="py-comment">#get just the 'large' representation URI</tt> </tt>
<a name="L167"></a><tt class="py-lineno">167</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-name">code</tt><tt class="py-op">,</tt> <tt id="link-92" class="py-name"><a title="jld.backup.gliffy_db.Diagrams.etag" class="py-name" href="#" onclick="return doclink('link-92', 'etag', 'link-64');">etag</a></tt><tt class="py-op">,</tt> <tt class="py-name">data</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-93" class="py-name"><a title="jld.api.gliffy
jld.jld.backup.gliffy" class="py-name" href="#" onclick="return doclink('link-93', 'gliffy', 'link-17');">gliffy</a></tt><tt class="py-op">.</tt><tt id="link-94" class="py-name" targets="Method jld.api.gliffy.Client.get()=jld.api.gliffy.Client-class.html#get"><a title="jld.api.gliffy.Client.get" class="py-name" href="#" onclick="return doclink('link-94', 'get', 'link-94');">get</a></tt><tt class="py-op">(</tt><tt id="link-95" class="py-name"><a title="jld.backup.gliffy_db.Diagrams.did" class="py-name" href="#" onclick="return doclink('link-95', 'did', 'link-63');">did</a></tt><tt class="py-op">)</tt> </tt>
<a name="L168"></a><tt class="py-lineno">168</tt>  <tt class="py-line"> </tt>
<a name="L169"></a><tt class="py-lineno">169</tt>  <tt class="py-line">        <tt class="py-comment">#write it</tt> </tt>
<a name="L170"></a><tt class="py-lineno">170</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">if</tt> <tt class="py-op">(</tt><tt class="py-name">code</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L171"></a><tt class="py-lineno">171</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-96" class="py-name" targets="Method jld.jld.backup.gliffy_backup.Backup._writeOne()=jld.jld.backup.gliffy_backup.Backup-class.html#_writeOne,Method jld.jld.backup.mindmeister_backup.Backup._writeOne()=jld.jld.backup.mindmeister_backup.Backup-class.html#_writeOne"><a title="jld.jld.backup.gliffy_backup.Backup._writeOne
jld.jld.backup.mindmeister_backup.Backup._writeOne" class="py-name" href="#" onclick="return doclink('link-96', '_writeOne', 'link-96');">_writeOne</a></tt><tt class="py-op">(</tt><tt id="link-97" class="py-name"><a title="jld.backup.gliffy_db.Diagrams.did" class="py-name" href="#" onclick="return doclink('link-97', 'did', 'link-63');">did</a></tt><tt class="py-op">,</tt> <tt class="py-name">data</tt><tt class="py-op">,</tt> <tt class="py-name">timestamp</tt><tt class="py-op">)</tt> </tt>
<a name="L172"></a><tt class="py-lineno">172</tt>  <tt class="py-line">             </tt>
<a name="L173"></a><tt class="py-lineno">173</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">code</tt><tt class="py-op">,</tt> <tt id="link-98" class="py-name"><a title="jld.backup.gliffy_db.Diagrams.etag" class="py-name" href="#" onclick="return doclink('link-98', 'etag', 'link-64');">etag</a></tt> </tt>
</div><a name="L174"></a><tt class="py-lineno">174</tt>  <tt class="py-line">                 </tt>
<a name="Backup._writeOne"></a><div id="Backup._writeOne-def"><a name="L175"></a><tt class="py-lineno">175</tt> <a class="py-toggle" href="#" id="Backup._writeOne-toggle" onclick="return toggle('Backup._writeOne');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="jld.jld.backup.gliffy_backup.Backup-class.html#_writeOne">_writeOne</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">did</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">,</tt> <tt class="py-param">timestamp</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Backup._writeOne-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Backup._writeOne-expanded"><a name="L176"></a><tt class="py-lineno">176</tt>  <tt class="py-line">        <tt class="py-docstring">""" Writes one diagram to the export folder</tt> </tt>
<a name="L177"></a><tt class="py-lineno">177</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L178"></a><tt class="py-lineno">178</tt>  <tt class="py-line">        <tt id="link-99" class="py-name" targets="Variable jld.api.delicious.path=jld.api.delicious-module.html#path,Variable jld.jld.backup.delicious.path=jld.jld.backup.delicious-module.html#path,Variable jld.jld.backup.gliffy.path=jld.jld.backup.gliffy-module.html#path,Variable jld.jld.backup.mm.path=jld.jld.backup.mm-module.html#path,Variable jld.jld.backup.mmd.path=jld.jld.backup.mmd-module.html#path"><a title="jld.api.delicious.path
jld.jld.backup.delicious.path
jld.jld.backup.gliffy.path
jld.jld.backup.mm.path
jld.jld.backup.mmd.path" class="py-name" href="#" onclick="return doclink('link-99', 'path', 'link-99');">path</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-100" class="py-name" targets="Method jld.jld.backup.gliffy_backup.Backup._genFilePath()=jld.jld.backup.gliffy_backup.Backup-class.html#_genFilePath,Method jld.jld.backup.mindmeister_backup.Backup._genFilePath()=jld.jld.backup.mindmeister_backup.Backup-class.html#_genFilePath"><a title="jld.jld.backup.gliffy_backup.Backup._genFilePath
jld.jld.backup.mindmeister_backup.Backup._genFilePath" class="py-name" href="#" onclick="return doclink('link-100', '_genFilePath', 'link-100');">_genFilePath</a></tt><tt class="py-op">(</tt><tt id="link-101" class="py-name"><a title="jld.backup.gliffy_db.Diagrams.did" class="py-name" href="#" onclick="return doclink('link-101', 'did', 'link-63');">did</a></tt><tt class="py-op">,</tt> <tt class="py-name">timestamp</tt><tt class="py-op">)</tt> </tt>
<a name="L179"></a><tt class="py-lineno">179</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L180"></a><tt class="py-lineno">180</tt>  <tt class="py-line">            <tt class="py-name">fh</tt> <tt class="py-op">=</tt> <tt class="py-name">open</tt><tt class="py-op">(</tt> <tt id="link-102" class="py-name"><a title="jld.api.delicious.path
jld.jld.backup.delicious.path
jld.jld.backup.gliffy.path
jld.jld.backup.mm.path
jld.jld.backup.mmd.path" class="py-name" href="#" onclick="return doclink('link-102', 'path', 'link-99');">path</a></tt><tt class="py-op">,</tt> <tt class="py-string">'wb'</tt> <tt class="py-op">)</tt> </tt>
<a name="L181"></a><tt class="py-lineno">181</tt>  <tt class="py-line">            <tt class="py-name">fh</tt><tt class="py-op">.</tt><tt class="py-name">write</tt><tt class="py-op">(</tt> <tt class="py-name">data</tt> <tt class="py-op">)</tt> </tt>
<a name="L182"></a><tt class="py-lineno">182</tt>  <tt class="py-line">            <tt class="py-name">fh</tt><tt class="py-op">.</tt><tt class="py-name">close</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L183"></a><tt class="py-lineno">183</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">Exception</tt><tt class="py-op">,</tt><tt class="py-name">e</tt><tt class="py-op">:</tt> </tt>
<a name="L184"></a><tt class="py-lineno">184</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt id="link-103" class="py-name"><a title="jld.api" class="py-name" href="#" onclick="return doclink('link-103', 'api', 'link-3');">api</a></tt><tt class="py-op">.</tt><tt id="link-104" class="py-name" targets="Class jld.api.ErrorFile=jld.api.ErrorFile-class.html"><a title="jld.api.ErrorFile" class="py-name" href="#" onclick="return doclink('link-104', 'ErrorFile', 'link-104');">ErrorFile</a></tt><tt class="py-op">(</tt><tt class="py-string">'msg:cant_write'</tt><tt class="py-op">,</tt> <tt class="py-op">{</tt><tt class="py-string">'path'</tt><tt class="py-op">:</tt><tt id="link-105" class="py-name"><a title="jld.api.delicious.path
jld.jld.backup.delicious.path
jld.jld.backup.gliffy.path
jld.jld.backup.mm.path
jld.jld.backup.mmd.path" class="py-name" href="#" onclick="return doclink('link-105', 'path', 'link-99');">path</a></tt><tt class="py-op">}</tt><tt class="py-op">)</tt>         </tt>
</div><a name="L185"></a><tt class="py-lineno">185</tt>  <tt class="py-line"> </tt>
<a name="Backup._genFilePath"></a><div id="Backup._genFilePath-def"><a name="L186"></a><tt class="py-lineno">186</tt> <a class="py-toggle" href="#" id="Backup._genFilePath-toggle" onclick="return toggle('Backup._genFilePath');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="jld.jld.backup.gliffy_backup.Backup-class.html#_genFilePath">_genFilePath</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">did</tt><tt class="py-op">,</tt> <tt class="py-param">timestamp</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Backup._genFilePath-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Backup._genFilePath-expanded"><a name="L187"></a><tt class="py-lineno">187</tt>  <tt class="py-line">        <tt class="py-docstring">""" Generates a filepath related</tt> </tt>
<a name="L188"></a><tt class="py-lineno">188</tt>  <tt class="py-line"><tt class="py-docstring">            to an export diagram.</tt> </tt>
<a name="L189"></a><tt class="py-lineno">189</tt>  <tt class="py-line"><tt class="py-docstring">            Assumes a 'jpg' extension.</tt> </tt>
<a name="L190"></a><tt class="py-lineno">190</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt>  </tt>
<a name="L191"></a><tt class="py-lineno">191</tt>  <tt class="py-line">        <tt class="py-name">dir</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">export_path_init</tt> <tt class="py-op">+</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">sep</tt> <tt class="py-op">+</tt> <tt id="link-106" class="py-name"><a title="jld.backup.gliffy_db.Diagrams.did" class="py-name" href="#" onclick="return doclink('link-106', 'did', 'link-63');">did</a></tt> </tt>
<a name="L192"></a><tt class="py-lineno">192</tt>  <tt class="py-line">        <tt id="link-107" class="py-name"><a title="jld.tools.mos" class="py-name" href="#" onclick="return doclink('link-107', 'mos', 'link-13');">mos</a></tt><tt class="py-op">.</tt><tt id="link-108" class="py-name" targets="Function jld.tools.mos.initPath()=jld.tools.mos-module.html#initPath"><a title="jld.tools.mos.initPath" class="py-name" href="#" onclick="return doclink('link-108', 'initPath', 'link-108');">initPath</a></tt><tt class="py-op">(</tt><tt class="py-name">dir</tt><tt class="py-op">)</tt> </tt>
<a name="L193"></a><tt class="py-lineno">193</tt>  <tt class="py-line">         </tt>
<a name="L194"></a><tt class="py-lineno">194</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">dir</tt> <tt class="py-op">+</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">sep</tt> <tt class="py-op">+</tt> <tt id="link-109" class="py-name"><a title="jld.backup.gliffy_db.Diagrams.did" class="py-name" href="#" onclick="return doclink('link-109', 'did', 'link-63');">did</a></tt> <tt class="py-op">+</tt> <tt class="py-string">'_'</tt> <tt class="py-op">+</tt><tt class="py-name">timestamp</tt> <tt class="py-op">+</tt> <tt class="py-string">'.jpg'</tt> </tt>
</div><a name="L195"></a><tt class="py-lineno">195</tt>  <tt class="py-line"> </tt>
<a name="Backup._extractHref"></a><div id="Backup._extractHref-def"><a name="L196"></a><tt class="py-lineno">196</tt> <a class="py-toggle" href="#" id="Backup._extractHref-toggle" onclick="return toggle('Backup._extractHref');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="jld.jld.backup.gliffy_backup.Backup-class.html#_extractHref">_extractHref</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">list</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Backup._extractHref-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Backup._extractHref-expanded"><a name="L197"></a><tt class="py-lineno">197</tt>  <tt class="py-line">        <tt class="py-docstring">""" Extracts the URI from the HREF entries in the list</tt> </tt>
<a name="L198"></a><tt class="py-lineno">198</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L199"></a><tt class="py-lineno">199</tt>  <tt class="py-line">        <tt class="py-name">result</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L200"></a><tt class="py-lineno">200</tt>  <tt class="py-line">        <tt class="py-name">list</tt> <tt class="py-op">=</tt> <tt class="py-name">list</tt> <tt class="py-keyword">if</tt> <tt class="py-name">list</tt> <tt class="py-keyword">else</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L201"></a><tt class="py-lineno">201</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">item</tt> <tt class="py-keyword">in</tt> <tt class="py-name">list</tt><tt class="py-op">:</tt> </tt>
<a name="L202"></a><tt class="py-lineno">202</tt>  <tt class="py-line">            <tt class="py-name">result</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt> <tt class="py-name">item</tt><tt class="py-op">[</tt><tt class="py-string">'href'</tt><tt class="py-op">]</tt> <tt class="py-op">)</tt> </tt>
<a name="L203"></a><tt class="py-lineno">203</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">result</tt> </tt>
</div><a name="L204"></a><tt class="py-lineno">204</tt>  <tt class="py-line">         </tt>
<a name="Backup._doImport"></a><div id="Backup._doImport-def"><a name="L205"></a><tt class="py-lineno">205</tt> <a class="py-toggle" href="#" id="Backup._doImport-toggle" onclick="return toggle('Backup._doImport');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="jld.jld.backup.gliffy_backup.Backup-class.html#_doImport">_doImport</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">list</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Backup._doImport-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Backup._doImport-expanded"><a name="L206"></a><tt class="py-lineno">206</tt>  <tt class="py-line">        <tt class="py-docstring">""" Imports the diagram ids' from the list into the database</tt> </tt>
<a name="L207"></a><tt class="py-lineno">207</tt>  <tt class="py-line"><tt class="py-docstring">            @param list: diagram list </tt> </tt>
<a name="L208"></a><tt class="py-lineno">208</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L209"></a><tt class="py-lineno">209</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt>    <tt class="py-name">uris</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-110" class="py-name" targets="Method jld.jld.backup.gliffy_backup.Backup._extractHref()=jld.jld.backup.gliffy_backup.Backup-class.html#_extractHref"><a title="jld.jld.backup.gliffy_backup.Backup._extractHref" class="py-name" href="#" onclick="return doclink('link-110', '_extractHref', 'link-110');">_extractHref</a></tt><tt class="py-op">(</tt><tt class="py-name">list</tt><tt class="py-op">)</tt> </tt>
<a name="L210"></a><tt class="py-lineno">210</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt><tt class="py-op">:</tt> <tt class="py-keyword">raise</tt> <tt id="link-111" class="py-name"><a title="jld.api" class="py-name" href="#" onclick="return doclink('link-111', 'api', 'link-3');">api</a></tt><tt class="py-op">.</tt><tt id="link-112" class="py-name" targets="Class jld.api.ErrorProtocol=jld.api.ErrorProtocol-class.html"><a title="jld.api.ErrorProtocol" class="py-name" href="#" onclick="return doclink('link-112', 'ErrorProtocol', 'link-112');">ErrorProtocol</a></tt><tt class="py-op">(</tt><tt class="py-string">'msg:error_expecting_href'</tt><tt class="py-op">)</tt> </tt>
<a name="L211"></a><tt class="py-lineno">211</tt>  <tt class="py-line"> </tt>
<a name="L212"></a><tt class="py-lineno">212</tt>  <tt class="py-line">        <tt class="py-name">ids</tt> <tt class="py-op">=</tt> <tt class="py-name">glf</tt><tt class="py-op">.</tt><tt id="link-113" class="py-name" targets="Function jld.api.gliffy.extractIdFromListOfURI()=jld.api.gliffy-module.html#extractIdFromListOfURI"><a title="jld.api.gliffy.extractIdFromListOfURI" class="py-name" href="#" onclick="return doclink('link-113', 'extractIdFromListOfURI', 'link-113');">extractIdFromListOfURI</a></tt><tt class="py-op">(</tt><tt class="py-name">uris</tt><tt class="py-op">)</tt> </tt>
<a name="L213"></a><tt class="py-lineno">213</tt>  <tt class="py-line">        <tt class="py-name">total</tt><tt class="py-op">,</tt> <tt class="py-name">updated</tt><tt class="py-op">,</tt> <tt id="link-114" class="py-name" targets="Variable jld.backup.mindmeister_db.Maps.created=jld.backup.mindmeister_db.Maps-class.html#created"><a title="jld.backup.mindmeister_db.Maps.created" class="py-name" href="#" onclick="return doclink('link-114', 'created', 'link-114');">created</a></tt> <tt class="py-op">=</tt> <tt class="py-name">glfdb</tt><tt class="py-op">.</tt><tt id="link-115" class="py-name"><a title="jld.backup.gliffy_db.Diagrams" class="py-name" href="#" onclick="return doclink('link-115', 'Diagrams', 'link-44');">Diagrams</a></tt><tt class="py-op">.</tt><tt id="link-116" class="py-name" targets="Class Method jld.backup.delicious_db.Posts.updateFromList()=jld.backup.delicious_db.Posts-class.html#updateFromList,Class Method jld.backup.gliffy_db.Diagrams.updateFromList()=jld.backup.gliffy_db.Diagrams-class.html#updateFromList,Class Method jld.backup.mindmeister_db.Maps.updateFromList()=jld.backup.mindmeister_db.Maps-class.html#updateFromList"><a title="jld.backup.delicious_db.Posts.updateFromList
jld.backup.gliffy_db.Diagrams.updateFromList
jld.backup.mindmeister_db.Maps.updateFromList" class="py-name" href="#" onclick="return doclink('link-116', 'updateFromList', 'link-116');">updateFromList</a></tt><tt class="py-op">(</tt><tt class="py-name">ids</tt><tt class="py-op">)</tt> </tt>
<a name="L214"></a><tt class="py-lineno">214</tt>  <tt class="py-line">        <tt class="py-name">msg</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">msgs</tt><tt class="py-op">.</tt><tt id="link-117" class="py-name"><a title="jld.jld.tools.messages.Messages.render2" class="py-name" href="#" onclick="return doclink('link-117', 'render2', 'link-70');">render2</a></tt><tt class="py-op">(</tt><tt class="py-string">'report_import'</tt><tt class="py-op">,</tt> <tt class="py-op">{</tt><tt class="py-string">'total'</tt><tt class="py-op">:</tt><tt class="py-name">total</tt><tt class="py-op">,</tt> <tt class="py-string">'updated'</tt><tt class="py-op">:</tt><tt class="py-name">updated</tt><tt class="py-op">,</tt> <tt class="py-string">'created'</tt><tt class="py-op">:</tt><tt id="link-118" class="py-name"><a title="jld.backup.mindmeister_db.Maps.created" class="py-name" href="#" onclick="return doclink('link-118', 'created', 'link-114');">created</a></tt> <tt class="py-op">}</tt><tt class="py-op">)</tt> </tt>
<a name="L215"></a><tt class="py-lineno">215</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-119" class="py-name"><a title="jld.tools.logger
jld.tools.logger.logger" class="py-name" href="#" onclick="return doclink('link-119', 'logger', 'link-36');">logger</a></tt><tt class="py-op">.</tt><tt class="py-name">info</tt><tt class="py-op">(</tt><tt class="py-name">msg</tt><tt class="py-op">)</tt> </tt>
</div><a name="L216"></a><tt class="py-lineno">216</tt>  <tt class="py-line">     </tt>
<a name="Backup._deleteDb"></a><div id="Backup._deleteDb-def"><a name="L217"></a><tt class="py-lineno">217</tt> <a class="py-toggle" href="#" id="Backup._deleteDb-toggle" onclick="return toggle('Backup._deleteDb');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="jld.jld.backup.gliffy_backup.Backup-class.html#_deleteDb">_deleteDb</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Backup._deleteDb-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Backup._deleteDb-expanded"><a name="L218"></a><tt class="py-lineno">218</tt>  <tt class="py-line">        <tt id="link-120" class="py-name"><a title="jld.api.delicious.path
jld.jld.backup.delicious.path
jld.jld.backup.gliffy.path
jld.jld.backup.mm.path
jld.jld.backup.mmd.path" class="py-name" href="#" onclick="return doclink('link-120', 'path', 'link-99');">path</a></tt> <tt class="py-op">=</tt> <tt id="link-121" class="py-name"><a title="jld.tools.mos" class="py-name" href="#" onclick="return doclink('link-121', 'mos', 'link-13');">mos</a></tt><tt class="py-op">.</tt><tt id="link-122" class="py-name" targets="Function jld.tools.mos.replaceHome()=jld.tools.mos-module.html#replaceHome"><a title="jld.tools.mos.replaceHome" class="py-name" href="#" onclick="return doclink('link-122', 'replaceHome', 'link-122');">replaceHome</a></tt><tt class="py-op">(</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">glf_db_path</tt> <tt class="py-op">)</tt> </tt>
<a name="L219"></a><tt class="py-lineno">219</tt>  <tt class="py-line">        <tt class="py-name">glfdb</tt><tt class="py-op">.</tt><tt id="link-123" class="py-name" targets="Class jld.backup.delicious_db.Db=jld.backup.delicious_db.Db-class.html,Class jld.backup.gliffy_db.Db=jld.backup.gliffy_db.Db-class.html,Class jld.backup.mindmeister_db.Db=jld.backup.mindmeister_db.Db-class.html"><a title="jld.backup.delicious_db.Db
jld.backup.gliffy_db.Db
jld.backup.mindmeister_db.Db" class="py-name" href="#" onclick="return doclink('link-123', 'Db', 'link-123');">Db</a></tt><tt class="py-op">.</tt><tt id="link-124" class="py-name" targets="Class Method jld.tools.db.BaseSQLObjectDb.deleteDb()=jld.tools.db.BaseSQLObjectDb-class.html#deleteDb,Class Method jld.tools.db.BaseSQLObjectDb2.deleteDb()=jld.tools.db.BaseSQLObjectDb2-class.html#deleteDb"><a title="jld.tools.db.BaseSQLObjectDb.deleteDb
jld.tools.db.BaseSQLObjectDb2.deleteDb" class="py-name" href="#" onclick="return doclink('link-124', 'deleteDb', 'link-124');">deleteDb</a></tt><tt class="py-op">(</tt><tt id="link-125" class="py-name"><a title="jld.api.delicious.path
jld.jld.backup.delicious.path
jld.jld.backup.gliffy.path
jld.jld.backup.mm.path
jld.jld.backup.mmd.path" class="py-name" href="#" onclick="return doclink('link-125', 'path', 'link-99');">path</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L220"></a><tt class="py-lineno">220</tt>  <tt class="py-line">         </tt>
<a name="Backup._init_export_folder"></a><div id="Backup._init_export_folder-def"><a name="L221"></a><tt class="py-lineno">221</tt> <a class="py-toggle" href="#" id="Backup._init_export_folder-toggle" onclick="return toggle('Backup._init_export_folder');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="jld.jld.backup.gliffy_backup.Backup-class.html#_init_export_folder">_init_export_folder</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Backup._init_export_folder-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Backup._init_export_folder-expanded"><a name="L222"></a><tt class="py-lineno">222</tt>  <tt class="py-line">        <tt class="py-docstring">""" Creates the export folder IF it does not</tt> </tt>
<a name="L223"></a><tt class="py-lineno">223</tt>  <tt class="py-line"><tt class="py-docstring">            already exists</tt> </tt>
<a name="L224"></a><tt class="py-lineno">224</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L225"></a><tt class="py-lineno">225</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-op">(</tt><tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">export_path_init</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L226"></a><tt class="py-lineno">226</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">export_path_init</tt> <tt class="py-op">=</tt> <tt id="link-126" class="py-name"><a title="jld.tools.mos" class="py-name" href="#" onclick="return doclink('link-126', 'mos', 'link-13');">mos</a></tt><tt class="py-op">.</tt><tt id="link-127" class="py-name"><a title="jld.tools.mos.initPath" class="py-name" href="#" onclick="return doclink('link-127', 'initPath', 'link-108');">initPath</a></tt><tt class="py-op">(</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">export_path</tt> <tt class="py-op">)</tt> </tt>
</div><a name="L227"></a><tt class="py-lineno">227</tt>  <tt class="py-line"> </tt>
<a name="L228"></a><tt class="py-lineno">228</tt>  <tt class="py-line">         </tt>
<a name="L229"></a><tt class="py-lineno">229</tt>  <tt class="py-line">    <tt class="py-comment"># LAZY INITIALIZERS</tt> </tt>
<a name="L230"></a><tt class="py-lineno">230</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment"># =================</tt> </tt>
<a name="L231"></a><tt class="py-lineno">231</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="Backup._initGliffy"></a><div id="Backup._initGliffy-def"><a name="L232"></a><tt class="py-lineno">232</tt> <a class="py-toggle" href="#" id="Backup._initGliffy-toggle" onclick="return toggle('Backup._initGliffy');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="jld.jld.backup.gliffy_backup.Backup-class.html#_initGliffy">_initGliffy</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Backup._initGliffy-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Backup._initGliffy-expanded"><a name="L233"></a><tt class="py-lineno">233</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-128" class="py-name"><a title="jld.api.gliffy
jld.jld.backup.gliffy" class="py-name" href="#" onclick="return doclink('link-128', 'gliffy', 'link-17');">gliffy</a></tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L234"></a><tt class="py-lineno">234</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-129" class="py-name"><a title="jld.api.gliffy
jld.jld.backup.gliffy" class="py-name" href="#" onclick="return doclink('link-129', 'gliffy', 'link-17');">gliffy</a></tt> <tt class="py-op">=</tt> <tt class="py-name">glf</tt><tt class="py-op">.</tt><tt id="link-130" class="py-name" targets="Class jld.api.delicious.Client=jld.api.delicious.Client-class.html,Class jld.api.gliffy.Client=jld.api.gliffy.Client-class.html"><a title="jld.api.delicious.Client
jld.api.gliffy.Client" class="py-name" href="#" onclick="return doclink('link-130', 'Client', 'link-130');">Client</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L235"></a><tt class="py-lineno">235</tt>  <tt class="py-line"> </tt>
<a name="Backup._initDb"></a><div id="Backup._initDb-def"><a name="L236"></a><tt class="py-lineno">236</tt> <a class="py-toggle" href="#" id="Backup._initDb-toggle" onclick="return toggle('Backup._initDb');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="jld.jld.backup.gliffy_backup.Backup-class.html#_initDb">_initDb</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Backup._initDb-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Backup._initDb-expanded"><a name="L237"></a><tt class="py-lineno">237</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">glf_db</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L238"></a><tt class="py-lineno">238</tt>  <tt class="py-line">            <tt class="py-name">glf_path</tt> <tt class="py-op">=</tt> <tt id="link-131" class="py-name"><a title="jld.tools.mos" class="py-name" href="#" onclick="return doclink('link-131', 'mos', 'link-13');">mos</a></tt><tt class="py-op">.</tt><tt id="link-132" class="py-name"><a title="jld.tools.mos.replaceHome" class="py-name" href="#" onclick="return doclink('link-132', 'replaceHome', 'link-122');">replaceHome</a></tt><tt class="py-op">(</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">glf_db_path</tt> <tt class="py-op">)</tt> </tt>
<a name="L239"></a><tt class="py-lineno">239</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">glf_db</tt> <tt class="py-op">=</tt> <tt class="py-name">glfdb</tt><tt class="py-op">.</tt><tt id="link-133" class="py-name"><a title="jld.backup.delicious_db.Db
jld.backup.gliffy_db.Db
jld.backup.mindmeister_db.Db" class="py-name" href="#" onclick="return doclink('link-133', 'Db', 'link-123');">Db</a></tt><tt class="py-op">(</tt> <tt class="py-name">glf_path</tt> <tt class="py-op">)</tt> </tt>
<a name="L240"></a><tt class="py-lineno">240</tt>  <tt class="py-line">         </tt>
<a name="L241"></a><tt class="py-lineno">241</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">dlc_db</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L242"></a><tt class="py-lineno">242</tt>  <tt class="py-line">            <tt class="py-name">dlc_path</tt> <tt class="py-op">=</tt> <tt id="link-134" class="py-name"><a title="jld.tools.mos" class="py-name" href="#" onclick="return doclink('link-134', 'mos', 'link-13');">mos</a></tt><tt class="py-op">.</tt><tt id="link-135" class="py-name"><a title="jld.tools.mos.replaceHome" class="py-name" href="#" onclick="return doclink('link-135', 'replaceHome', 'link-122');">replaceHome</a></tt><tt class="py-op">(</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">dlc_db_path</tt> <tt class="py-op">)</tt> </tt>
<a name="L243"></a><tt class="py-lineno">243</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">dlc_db</tt> <tt class="py-op">=</tt> <tt class="py-name">dlcdb</tt><tt class="py-op">.</tt><tt id="link-136" class="py-name"><a title="jld.backup.delicious_db.Db
jld.backup.gliffy_db.Db
jld.backup.mindmeister_db.Db" class="py-name" href="#" onclick="return doclink('link-136', 'Db', 'link-123');">Db</a></tt><tt class="py-op">(</tt> <tt class="py-name">dlc_path</tt> <tt class="py-op">)</tt> </tt>
</div></div><a name="L244"></a><tt class="py-lineno">244</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="jld-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Tue Jan 06 22:07:40 2009
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
